﻿using BW.MesProject.BasicData.Domain.基础;
using BW.MesProject.Public.ErrorCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.BasicData.Infrastructure
{
    public interface IProductItemServices
    {
        //根据id判断是添加还是修改
        ApiResult<int> AddProductItem(ProductItemModel model);
        //删除
        ApiResult<int> DeleteProductItem(long id);
        //查询所有
        ApiResult<List<ProductItemModel>> GetAllProductItem();
        //分页查询
        ApiPaging<ProductItemModel> GetProductItem(string? Productitemcode, string? Productitemname,string? Producttype, int pageindex, int pagesize);
        //根据id查询
        ApiResult<ProductItemModel> GetProductItemById(long id);

    }
}
